<?php
namespace TbfDatabase\MysqlAST;

class PrepareTextNodeImpl implements WhereCondition{
    /** @var  string */
    protected $text;
    protected $parameters;
    function __construct($text,$parameters){
        $this->text = $text;
        $this->parameters = $parameters;
    }
    function Copy(){
        return new PrepareTextNodeImpl($this->text,$this->parameters);
    }

    /** @return string */
    function GetText(){
        return $this->text;
    }

    /** @return string[] */
    function GetPrepareParameter(){
        return $this->parameters;
    }
    function IsEmpty(){
        return empty($this->text);
    }
}